home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16514 < prev    next >
Encoding:
Text File  |  1996-08-05  |  773 b   |  23 lines

  1. Path: pop.gnn.com!DWilkes
  2. From: DWilkes@gnn.com (Dave wilkes)
  3. Newsgroups: comp.lang.c++
  4. Subject: I need help in extracting the path....
  5. Date: Wed, 10 Apr 1996 19:30:38
  6. Organization: GNN
  7. Message-ID: <4khuf5$n60@news-e2c.gnn.com>
  8. NNTP-Posting-Host: www-23-87.gnn.com
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset="us-ascii"
  11. X-GNN-NewsServer-Posting-Date: 11 Apr 1996 03:31:49 GMT
  12. X-Mailer: GNNmessenger 1.2
  13.  
  14. In C how do you extract the path from the command line vairable char* argv[]?
  15. I want to remove the program name from the command line argument and use just 
  16. the path.
  17.  i.e. argv[] =ôc:\dir\dir...\prog.exeö 
  18. The length of the path will be unknown till run time.
  19. Thank you in advance for any replies.
  20.  
  21. I want to start procrastinating, but I keep putting it off.
  22.  
  23.